using System;
using System.Linq;

namespace Caramel.Entities
{
	public static class SequencedEntityQueryableExtensions
	{
		public static IQueryable<ISequencedEntity> WhereNameIs<T>(this IQueryable<ISequencedEntity> queryable, string name)
		{
			return queryable.OrderBy(e => e.Sequence);
		}
	}
}
